package org.eden.karb.event.impl;

import org.eden.karb.event.Event;

import java.util.Date;
import java.util.UUID;

/**
 * Abstract event.
 *
 * @author trsimoes
 */
public abstract class AbstractEvent implements Event {

    private UUID sessionId;

    private Date date;

    public AbstractEvent(UUID sessionId) {
        this.sessionId = sessionId;
        date = new Date();
    }

    public Date getDate() {
        return date;
    }

    public UUID getSessionId() {
        return sessionId;
    }

    public void setSessionId(UUID sessionId) {
        this.sessionId = sessionId;
    }

    @Override
    public String toString() {
        return "Event{" +
                "sessionId=" + sessionId +
                ", date=" + date +
                '}';
    }
}
